package com.zr.model;
// Generated 2017-7-10 13:41:39 by Hibernate Tools 4.0.0.Final

import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * Corder generated by hbm2java
 */
@Entity
@Table(name = "corder", catalog = "cqlwlps")
public class Corder implements java.io.Serializable {

	private Integer oid;
	private Costate costate;
	private Cgoodstype cgoodstype;
	private Clogstate clogstate;
	private Csealing csealing;
	private Cotype cotype;
	private String startp;
	private String endp;
	private String osenddate;
	private String osendman;
	private String sgetman;
	private String osendtel;
	private String ogettel;
	private String paystate;
	private String paystyle;
	private String goodsweight;
	private String goodsvolume;
	private String goodsname;
	private Integer goodsnumber;
	private double valuation;
	private String barcode;
	private Integer uid;
	private Integer disid;
	private Set<Creceipt> creceipts = new HashSet<Creceipt>(0);

	public Corder() {
	}

	public Corder(Cotype cotype, String startp, String endp, String osenddate, String osendman, String sgetman,
			String osendtel, String ogettel, String goodsweight, double valuation) {
		this.cotype = cotype;
		this.startp = startp;
		this.endp = endp;
		this.osenddate = osenddate;
		this.osendman = osendman;
		this.sgetman = sgetman;
		this.osendtel = osendtel;
		this.ogettel = ogettel;
		this.goodsweight = goodsweight;
		this.valuation = valuation;
	}

	public Corder(Costate costate, Cgoodstype cgoodstype, Clogstate clogstate, Csealing csealing, Cotype cotype,
			String startp, String endp, String osenddate, String osendman, String sgetman, String osendtel,
			String ogettel, String paystate, String paystyle, String goodsweight, String goodsvolume, String goodsname,
			Integer goodsnumber, double valuation, String barcode, Integer uid, Integer disid,
			Set<Creceipt> creceipts) {
		this.costate = costate;
		this.cgoodstype = cgoodstype;
		this.clogstate = clogstate;
		this.csealing = csealing;
		this.cotype = cotype;
		this.startp = startp;
		this.endp = endp;
		this.osenddate = osenddate;
		this.osendman = osendman;
		this.sgetman = sgetman;
		this.osendtel = osendtel;
		this.ogettel = ogettel;
		this.paystate = paystate;
		this.paystyle = paystyle;
		this.goodsweight = goodsweight;
		this.goodsvolume = goodsvolume;
		this.goodsname = goodsname;
		this.goodsnumber = goodsnumber;
		this.valuation = valuation;
		this.barcode = barcode;
		this.uid = uid;
		this.disid = disid;
		this.creceipts = creceipts;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "oid", unique = true, nullable = false)
	public Integer getOid() {
		return this.oid;
	}

	public void setOid(Integer oid) {
		this.oid = oid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ostateid")
	public Costate getCostate() {
		return this.costate;
	}

	public void setCostate(Costate costate) {
		this.costate = costate;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "gtid")
	public Cgoodstype getCgoodstype() {
		return this.cgoodstype;
	}

	public void setCgoodstype(Cgoodstype cgoodstype) {
		this.cgoodstype = cgoodstype;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "logstateid")
	public Clogstate getClogstate() {
		return this.clogstate;
	}

	public void setClogstate(Clogstate clogstate) {
		this.clogstate = clogstate;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "seid")
	public Csealing getCsealing() {
		return this.csealing;
	}

	public void setCsealing(Csealing csealing) {
		this.csealing = csealing;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "otypeid", nullable = false)
	public Cotype getCotype() {
		return this.cotype;
	}

	public void setCotype(Cotype cotype) {
		this.cotype = cotype;
	}

	@Column(name = "startp", nullable = false)
	public String getStartp() {
		return this.startp;
	}

	public void setStartp(String startp) {
		this.startp = startp;
	}

	@Column(name = "endp", nullable = false)
	public String getEndp() {
		return this.endp;
	}

	public void setEndp(String endp) {
		this.endp = endp;
	}

	@Column(name = "osenddate", nullable = false)
	public String getOsenddate() {
		return this.osenddate;
	}

	public void setOsenddate(String osenddate) {
		this.osenddate = osenddate;
	}

	@Column(name = "osendman", nullable = false)
	public String getOsendman() {
		return this.osendman;
	}

	public void setOsendman(String osendman) {
		this.osendman = osendman;
	}

	@Column(name = "sgetman", nullable = false)
	public String getSgetman() {
		return this.sgetman;
	}

	public void setSgetman(String sgetman) {
		this.sgetman = sgetman;
	}

	@Column(name = "osendtel", nullable = false)
	public String getOsendtel() {
		return this.osendtel;
	}

	public void setOsendtel(String osendtel) {
		this.osendtel = osendtel;
	}

	@Column(name = "ogettel", nullable = false)
	public String getOgettel() {
		return this.ogettel;
	}

	public void setOgettel(String ogettel) {
		this.ogettel = ogettel;
	}

	@Column(name = "paystate")
	public String getPaystate() {
		return this.paystate;
	}

	public void setPaystate(String paystate) {
		this.paystate = paystate;
	}

	@Column(name = "paystyle")
	public String getPaystyle() {
		return this.paystyle;
	}

	public void setPaystyle(String paystyle) {
		this.paystyle = paystyle;
	}

	@Column(name = "goodsweight", nullable = false)
	public String getGoodsweight() {
		return this.goodsweight;
	}

	public void setGoodsweight(String goodsweight) {
		this.goodsweight = goodsweight;
	}

	@Column(name = "goodsvolume")
	public String getGoodsvolume() {
		return this.goodsvolume;
	}

	public void setGoodsvolume(String goodsvolume) {
		this.goodsvolume = goodsvolume;
	}

	@Column(name = "goodsname")
	public String getGoodsname() {
		return this.goodsname;
	}

	public void setGoodsname(String goodsname) {
		this.goodsname = goodsname;
	}

	@Column(name = "goodsnumber")
	public Integer getGoodsnumber() {
		return this.goodsnumber;
	}

	public void setGoodsnumber(Integer goodsnumber) {
		this.goodsnumber = goodsnumber;
	}

	@Column(name = "valuation", nullable = false, precision = 255, scale = 0)
	public double getValuation() {
		return this.valuation;
	}

	public void setValuation(double valuation) {
		this.valuation = valuation;
	}

	@Column(name = "barcode", length = 100)
	public String getBarcode() {
		return this.barcode;
	}

	public void setBarcode(String barcode) {
		this.barcode = barcode;
	}

	@Column(name = "uid")
	public Integer getUid() {
		return this.uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	@Column(name = "disid")
	public Integer getDisid() {
		return this.disid;
	}

	public void setDisid(Integer disid) {
		this.disid = disid;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "corder")
	public Set<Creceipt> getCreceipts() {
		return this.creceipts;
	}

	public void setCreceipts(Set<Creceipt> creceipts) {
		this.creceipts = creceipts;
	}

}
